/*
 * @author java_deng
 * @date 2024/12/4 14:52
 * @description
 */
package org.kaka.controller;

import org.kaka.service.impl.CategoryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/category")
public class CategoryController extends BaseController{
    @Autowired
    private CategoryServiceImpl categoryService;

    @GetMapping("/list")
    public Object list(){
        return  success(categoryService.list());
    }
}
